package com.das.mechanic_base.bean.create;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

public class SelectWorkBean implements Serializable {

    public String serviceCategoryValue;
    public List<ShopCategoryEntityBean> shopCategoryEntityList;

    public static class ShopCategoryEntityBean implements Serializable{

        public String name;
        public List<ServiceBaseEntityBean> serviceBaseEntityList;


        @Override
        public String toString() {
            return "{" +
                    "\"name\":\'" + name + "\'" +
                    ", \"serviceBaseEntityList\":" + serviceBaseEntityList +
                    '}';
        }
    }

    public static class ServiceBaseEntityBean implements Serializable{
        public String name;
        public String sn;
        //显示数据拼音的首字母
        public String sortLetters;

        public String getSortLetters() {
            return sortLetters;
        }

        public void setSortLetters(String sortLetters) {
            this.sortLetters = sortLetters;
        }

        @Override
        public String toString() {
            return "{" +
                    "\"name\":\'" + name + "\'" +
                    ", \"sn\":\'" + sn + "\'" +
                    '}';
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            ServiceBaseEntityBean that = (ServiceBaseEntityBean) o;
            return Objects.equals(name, that.name) &&
                    Objects.equals(sn, that.sn);
        }

        @Override
        public int hashCode() {
            return Objects.hash(name, sn);
        }
    }

    @Override
    public String toString() {
        return "{" +
                "\"serviceCategoryValue\":\'" + serviceCategoryValue + "\'" +
                ", \"shopCategoryEntityList\":" + shopCategoryEntityList +
                '}';
    }
}
